package com.rjxy.plansystemmanagement.mapper;

import com.rjxy.plansystemmanagement.entity.U_file;
import org.apache.ibatis.annotations.*;

@Mapper
public interface UFileMapper {
    @Select("SELECT * FROM u_file WHERE uid = #{uid}")
    U_file getUFileByUId(Integer uid);

    @Update("UPDATE u_file SET avatar_url = #{avatar_url} WHERE uid = #{uid}")
    int updateAvatar(U_file uFile);

    @Insert("INSERT INTO u_file (uid, avatar_url) VALUES (#{uid}, #{avatar_url})")
    int insertAvatar(U_file uFile);
}
